<?php
/**
 * Created by PhpStorm.
 * Author: 黑瞎子
 * Date: 2018/3/15
 * Time: 22:50
 */

namespace app\api\model;


use think\Model;

class BannerItem extends Model
{
    //隐藏字段
    protected $hidden = ['id', 'img_id', 'delete_time', 'update_time', 'banner_id'];

    //关联Image模型
    public function img(){
        return $this->belongsTo('Image','img_id','id');
    }
}